@import "theme";

.iLeader-header{
  width: 100%;
  height: 76px;
  background-color: #232329;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  .logo{
    float: left;
    padding-top: 22px;
    img{
      max-height: 30px;
    }
  }
  .header-nav{
    float: right;
    background: none;
    padding: 0;
  }
  .layui-nav-item{
    line-height: 76px;
    >a{
      color: @white;
    }
    .sign-out{
      width: 25px;
      height: 25px;
      display: inline-block;
      background-image: url("../img/main_icons.png");
      background-repeat: no-repeat;
      background-position: -75px 0;
      padding: 0;
      vertical-align: -6px;
      margin-left: 15px;
    }
  }
  .layui-nav-more{
    border-top-color: @white;
    border-width: 5px;
    margin-top: -2px;
  }
  .layui-nav-mored{
    border-color: transparent transparent @blue;
    margin-top: -8px;
  }
  .layui-nav-child{
    width: 140px;
    left: auto;
    top: 60px;
    right: 18px;
    line-height: 28px;
    border-color: #e5e5e5;
    box-shadow: 1px 5px 10px rgba(14, 5, 10, .1);
    border-radius: 3px;
    padding: 8px 0 8px 28px;
    box-sizing: border-box;
    dd{
      background: none;
      >a{
        &:before{
          width: 10px;
          height: 10px;
          background-color: transparent;
          border-radius: 50%;
          content: "";
          position: absolute;
          left: -18px;
          top: 50%;
          margin-top: -5px;
          transition: all .2s ease-in-out;
        }
        &:hover{
          color: @gray;
          background: none;
          &:before{
            background-color: @blue;
          }
        }
      }
    }
    &:before{
      content: '';
      width: 0;
      height: 0;
      border-style: solid dashed dashed;
      border-color: transparent transparent @white;
      position: absolute;
      top: -16px;
      right: 10px;
      border-width: 8px 5px;
    }
    a{
      padding: 0;
      font-size: 12px;
      color: @gray;
    }
  }
  .nav-divider{
    width: 100%;
    height: 1px;
    background-color: #e5e5e5!important;
    margin: 8px 0;
  }
  .nav-rect{
    width: 1px;
    height: 12px;
    background-color: @white;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
  }
  .layui-nav-bar{
    display: none;
  }
  .il-search-input{
    width: 120px;
    height: 28px;
    line-height: 28px;
    border-radius: 20px;
    background-color: @blue;
    border: 0;
    font-size: 10px;
    padding-left: 18px;
    color: @white;
    &::-webkit-input-placeholder{
      color: @white;
    }
  }
  .il-search-btn{
    width: 28px;
    height: 28px;
    background-color: @white;
    padding: 0;
    text-align: center;
    margin-left: 6px;
    .icon{
      width: 20px;
      height: 20px;
      display: inline-block;
      background: url("../img/main_icons.png") no-repeat -175px 0;
      margin-top: 4px;
    }
  }
}

.iLeader-body{
  width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: table;
  .iLeader-main{
    display: table-cell;
    vertical-align: middle;
    padding: 100px 0;
  }
}

.main-header{
  width: 100%;
  height: 60px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 5px 30px rgba(26, 26, 26, .3);
  padding: 0 30px;
  box-sizing: border-box;
  margin-bottom: 6px;
  position: relative;
  .title{
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    line-height: 60px;
  }
}

.main-body{
  width: 100%;
  min-height: 550px;
  //height: 550px;
  background-color: @white;
  .main-body-l{
    min-height: 550px;
    //height: 550px;
    position: relative;
    &:after{
      width: 1px;
      content: "";
      background-color: @grayE5;
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
    }
  }
  .main-body-r{
    min-height: 550px;
    //height: 550px;
    position: relative;
    &:before{
      width: 1px;
      content: "";
      background-color: @grayE5;
      position: absolute;
      left: -1px;
      top: 0;
      bottom: 0;
    }
  }
}

.main-nav-list{
  padding: 72px 0 20px 75px;
  .list-item{
    height: 110px;
    //min-height: 50px;
    padding-left: 70px;
    padding-right: 20px;
    position: relative;
    //margin-bottom: 60px;
    letter-spacing: 1px;
  }
  .il-icons{
    width: 50px;
    height: 50px;
    display: inline-block;
    background-image: url("../img/main_icons.png");
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    &.il-icons-user{
      background-position: 0 -50px;
    }
    &.il-icons-course{
      background-position: -50px -50px;
    }
    &.il-icons-sort{
      background-position: -100px -50px;
    }
    &.il-icons-group{
      background-position: -150px -50px;
    }
    &.il-icons-rule{
      background-position: -200px -50px;
    }
    &.il-icons-notice{
      background-position: -250px -50px;
    }
    &.il-icons-report{
      background-position: -300px -50px;
    }
    &.il-icons-order{
      background-position: 0 -50px;
    }
  }
  .link-hd{
    line-height: 20px;
    font-size: 20px;
    margin-bottom: 6px;
    >a{
      color: @gray;
      border-bottom: 1px solid transparent;
      &:hover{
        color: @blue;
        border-color: @blue;
      }
    }
  }
  .link-bd{
    line-height: 22px;
    >a{
      color: #41414c;
      margin-right: 14px;
      &:hover{
        color: @blue;
      }
    }
  }
}

.main-affairs{
  //padding: 25px 20px;
  min-height: 550px;
  box-sizing: border-box;
  position: relative;
  .chart-op{
    float: left;
    position: absolute;
    top: -36px;
    .layui-btn-group{
      border: 1px solid #e0e0e0;
      border-radius: 30px;
      overflow: hidden;
    }
    .layui-btn{
      width: 50px;
      text-align: center;
      padding: 0 10px;
      transition: none;
      height: 34px;
      line-height: 34px;
      background-color: #f5f5f5;
      color: @gray;
      border-color: #e0e0e0;
      &:hover{
        background-color: #e0e0e0;
      }
      &.active{
        background-color: #e0e0e0;
        font-weight: bold;
      }
      &:first-child{
        width: 78px;
      }
    }
  }
  .affairs-op{
    float: right;
    .layui-btn{
      padding: 0 8px;
      &:first-child{
        padding: 0 6px 0 10px;
      }
      &:last-child{
        padding: 0 10px 0 6px;
      }
      &:hover, &.active{
        .icon-log{
          background-position: -100px -25px;
        }
        .icon-map{
          background-position: -125px -25px;
        }
        .icon-overview{
          background-position: -150px -25px;
        }
      }
    }
    .icon{
      width: 25px;
      height: 25px;
      display: inline-block;
      vertical-align: -8px;
      background-image: url("../img/main_icons.png");
      background-repeat: no-repeat;
      &.icon-log{
        background-position: -100px 0;
      }
      &.icon-map{
        background-position: -125px 0;
      }
      &.icon-overview{
        background-position: -150px 0;
      }
    }
  }
  .affairs-header{
    width: 100%;
    position: absolute;
    box-sizing: border-box;
    padding: 25px 20px 0;
    .layui-btn-group{
      border: 1px solid #e0e0e0;
      border-radius: 30px;
      overflow: hidden;
    }
    .layui-btn{
      height: 34px;
      line-height: 34px;
      background-color: #f5f5f5;
      color: @gray;
      border-color: #e0e0e0;
    }
  }
  .affairs-body{
    width: 100%;
    position: absolute;
    top: 61px;
    bottom: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .ab-content{
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
  }
  .il-log-wrap{
    padding: 10px 0 0;
  }
  .il-log-list{
    li{
      padding: 5px 0;
    }
    .btn{
      width: 40px;
      height: 20px;
      line-height: 18px;
      border: 1px solid @black;
      border-radius: 10px;
      text-align: center;
      box-sizing: border-box;
      display: inline-block;
      font-size: 12px;
      margin-right: 20px;
      &.btn-create{
        border-color: @green;
        color: @green;
      }
      &.btn-add{
        border-color: @orange;
        color: @orange;
      }
      &.btn-login{
        color: @white;
        background-color: #00e5a7;
        background-image: linear-gradient(#00e5a7, @green);
        border: 0;
        line-height: 20px;
      }
      &.btn-delete{
        color: @white;
        background-color: #fc8645;
        background-image: linear-gradient(#fc8645, @red);
        border: 0;
        line-height: 20px;
      }
      &.btn-update{
        color: @red;
        border-color: @red;
      }
    }
  }
  .il-log-link{
    padding: 28px 0 0;
    >a{
      padding: 0 15px;
    }
  }
  .il-ov-wrap{
    padding: 10px 0;
  }
  .il-ov-title{
    height: 26px;
    line-height: 24px;
    background-color: #d0e4f5;
    border-bottom: 1px solid #bed8ee;
    border-radius: 20px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .il-ov-list{
    padding: 16px 20px;
  }
  .il-ov-item{
    height: 60px;
    text-align: center;
    color: #41414c;
    &.border-right{
      border-right: 1px solid @grayE5;
    }
    &.border-top{
      border-top: 1px solid @grayE5;
      padding-top: 14px;
    }
    .item-num{
      line-height: 24px;
      font-size: 22px;
      margin-bottom: 4px;
    }
    .item-text{
      line-height: 14px;
      margin-bottom: 4px;
    }
    .item-subtext{
      font-size: 12px;
      line-height: 12px;
    }
  }
}

.main-nav-list2{
  //padding: 50px 0 25px 70px;
  padding: 15% 0 10% 15%;
  .list-item{
    //min-height: 50px;
    //padding-left: 70px;
    //position: relative;
    margin-bottom: 50px;
    letter-spacing: 1px;
  }
  .item-link{
    min-height: 50px;
    display: block;
    position: relative;
    padding-left: 70px;
    &:hover{
      opacity: 1;
      color: @blue;
    }
  }
  .il-icons{
    width: 50px;
    height: 50px;
    display: inline-block;
    background-image: url("../img/main_icons.png");
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    &.il-icons-user{
      background-position: 0 -50px;
    }
    &.il-icons-course{
      background-position: -50px -50px;
    }
    &.il-icons-sort{
      background-position: -100px -50px;
    }
    &.il-icons-group{
      background-position: -150px -50px;
    }
    &.il-icons-rule{
      background-position: -200px -50px;
    }
    &.il-icons-notice{
      background-position: -250px -50px;
    }
    &.il-icons-report{
      background-position: -300px -50px;
    }
    &.il-icons-order{
      background-position: 0 -50px;
    }
  }
  .link-hd{
    line-height: 20px;
    font-size: 20px;
    margin-bottom: 6px;
  }
  .link-bd{
    line-height: 22px;
  }
}

//教师、学员主页
.main-il-wrap{
  padding: 25px 30px;
}
.main-il-bar{
  .il-search-box{
    float: left;
  }
  .il-search-input{
    width: 200px;
    height: 36px;
    line-height: 36px;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    border-radius: 20px;
    padding: 0 16px;
    &::-webkit-input-placeholder{
      color: #d1d1d1;
      font-size: 12px;
    }
  }
  .il-search-btn{
    width: 28px;
    height: 28px;
    background-color: @blue;
    padding: 0;
    text-align: center;
    margin-left: 6px;
    .icon{
      width: 20px;
      height: 20px;
      display: inline-block;
      background: url("../img/main_icons.png") no-repeat -175px -25px;
      margin-top: 4px;
    }
  }
  .il-op-list{
    float: right;
  }
  .il-sort-box{
    position: relative;
  }
  .btn-sort{
    background-color: #b2b2b2;
    border: 1px solid #999;
    line-height: 34px;
    padding: 0 10px;
  }
}
.main-course-wrap{
  .il-grid-item{
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .il-grid-img{
    padding-top: 56%;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    &:hover{
      .mask-box{
        top: 0;
      }
    }
  }
  .avatar-img{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
  }
  .mask-box{
    width: 100%;
    height: 100%;
    position: absolute;
    //top: 0;
    top: 100%;
    left: 0;
    z-index: 20;
    background: rgba(0, 0, 0, .4);
    text-align: center;
    padding-top: 22%;
    box-sizing: border-box;
    transition: all .3s ease-in-out;
    .mask-btn{
      width: 40px;
      height: 40px;
      background-color: @white;
      border-radius: 50%;
      display: inline-block;
      margin: 0 8%;
      .icon{
        width: 25px;
        height: 25px;
        display: inline-block;
        content: "";
        background-image: url("../img/main_icons.png");
        background-repeat: no-repeat;
        margin-top: 7px;
        &.icon-edit{
          background-position: -200px 0;
        }
        &.icon-info{
          background-position: -225px 0;
        }
      }
    }
  }
  .il-grid-title{
    .title-link{
      height: 36px;
      line-height: 36px;
      display: block;
      font-size: 0;
      &:hover{
        color: @blue;
      }
    }
    span{
      display: inline-block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      box-sizing: border-box;
    }
    .name{
      max-width: 75%;
      font-size: 18px;
    }
    .level{
      max-width: 25%;
      font-size: 14px;
      vertical-align: -2px;
      padding-left: 5px;
    }
  }
}
.main-il-rate{
  border: 1px solid #bed8ee;
  border-radius: 3px;
  margin: 10px 0 30px;
  .rate-item{
    >a{
      &:hover{
        background-color: rgba(208, 228, 245, .6);
      }
    }
    &:first-child{
      .item-link{
        border: 0;
      }
    }
  }
  .item-link{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 14px 15px 8px 20px;
    position: relative;
    background-color: #d0e4f5;
    border-left: 1px solid #bed8ee;
  }
  .i-num{
    color: #333347;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  .i-text{
    color: #1a1a1a;
  }
  .icon{
    width: 30px;
    height: 30px;
    display: inline-block;
    position: absolute;
    top: 50%;
    margin-top: -15px;
    right: 15px;
    background-image: url("../img/main_icons.png");
    background-repeat: no-repeat;
    &.icon-course{
      background-position: 0 -100px;
    }
    &.icon-ok{
      background-position: -50px -100px;
    }
    &.icon-time{
      background-position: -100px -100px;
    }
    &.icon-badge{
      background-position: -150px -100px;
    }
  }
}



@media screen and (max-width: 1600px) {
  .iLeader-header{
    height: 60px;
    .logo{
      padding-top: 16px;
    }
    .layui-nav-item{
      line-height: 60px;
    }
    .layui-nav-child{
      top: 50px;
    }
  }
  .iLeader-body{
    width: 1200px;
    .iLeader-main{
      padding: 80px 0;
    }
  }
  .main-header{
    height: 50px;
    .title{
      font-size: 16px;
      line-height: 50px;
    }
  }
}